package behaviorType.strategy;

public class StrategySolve {
    private IStrategy iStrategy;

    public StrategySolve(IStrategy iStrategy) {
        this.iStrategy = iStrategy;
    }

    public void solve() {
        this.iStrategy.operate();
    }

    public void changeStrategy(IStrategy iStrategy) {
        this.iStrategy = iStrategy;
    }
}
